package com.hong.dao;

import java.util.Collection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hong.domain.Employee;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee selectById(@Param("id")Integer id);

    int updateBatch(@Param("list") List<Employee> list);

    List<Employee> selectByAgeIn(@Param("ages") Collection<Integer> ages);


    int updateBatchByIds(@Param("list") List<Employee> list);


	List<Employee> selectByAll(Employee employee);


    int updateByName(@Param("updated")Employee updated,@Param("name")String name);


    int insertOrUpdateSelective(Employee record);

     int updateNameById(@Param("name")String name,@Param("id")Integer id);


     IPage<Employee> selectByNamePage(IPage<Employee> page,@Param("name") String name);


}